package com.like.sortlist;

import java.util.Locale;

public class BaseSort {

	public String sortLetters;
	
	public void setSortLetters(String letter) {
		CharacterParser characterParse = CharacterParser.getInstance();
		String pinyin = characterParse.getSelling(letter);
		String sortString = pinyin.substring(0, 1).toUpperCase(
				Locale.getDefault());
		if (sortString.matches("[A-Z]")) {
			sortLetters = sortString.toUpperCase(Locale.getDefault());
		} else {
			sortLetters = "#";
		}
	}

}
